<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title><?php echo (C("WEBTITLE")); ?></title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <link rel="shortcut icon" href="/Public/style/img/ico/favicon.ico">
        <!-- bootstrap 3.0.2 -->
        <link href="/Public/style/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- font Awesome -->
        <link href="/Public/style/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <link href="/Public/style/css/awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="/Public/style/css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <!-- Morris chart -->
        <link href="/Public/style/css/morris/morris.css" rel="stylesheet" type="text/css" />
        <!-- jvectormap -->
        <link href="/Public/style/css/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
        <!-- fullCalendar -->
        <link href="/Public/style/css/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css" />
        <!-- Daterange picker -->
        <link href="/Public/style/css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
        <!-- bootstrap wysihtml5 - text editor -->
        <link href="/Public/style/css/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
        <link href="/Public/style/css/AdminLTE.css" rel="stylesheet" type="text/css" />
        <!-- UED style -->
        <link rel="stylesheet" href="/Public/style/css/ued.css" />

        <!-- DATA TABLES -->
        <link href="/Public/style/css/datatables/dataTables.bootstrap.css" rel="stylesheet" type="text/css" />

        <!-- jQuery 2.0.2 -->
        <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="/Public/style/js/html5shiv.js"></script>
          <script src="/Public/style/js/respond.min.js"></script>
        <![endif]-->
    </head>
    <body class="skin-blue  pace-done fixed">
        <!-- header logo: style can be found in header.less -->
        <header class="header">
            <a href="index.html" class="logo">
                <!-- Add the class icon to your logo image or logo icon to add the margining -->
                Mhs_Admin
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">切换导航</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <!-- Messages: style can be found in dropdown.less-->
                        <li class="dropdown messages-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-envelope"></i>
                                <span class="label label-success">4</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">您有 <span style="color:EC494E;">4</span> 条新消息</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">

                                        <li><!-- start message -->
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="<?php echo ($_SESSION['user']['user_photo']); ?>" class="img-circle" alt="User Image"/>
                                                </div>
                                                <h4>
                                                    新消息标题
                                                    <small><i class="fa fa-clock-o"></i> 5 分钟</small>
                                                </h4>
                                                <p>新消息内容</p>
                                            </a>
                                        </li><!-- end message -->

                                    </ul>
                                </li>
                                <li class="footer"><a href="#">查看所有消息</a></li>
                            </ul>
                        </li>
                        <!-- Notifications: style can be found in dropdown.less -->
                        <li class="dropdown notifications-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-warning"></i>
                                <span class="label label-warning">10</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">您有 10 条通知</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">
                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-people info"></i> 5 new members joined today
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                <li class="footer"><a href="#">查看所有</a></li>
                            </ul>
                        </li>
                        <!-- Tasks: style can be found in dropdown.less -->
                        <li class="dropdown tasks-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-tasks"></i>
                                <span class="label label-danger">9</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">您有 9 任务</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Design some buttons
                                                    <small class="pull-right">20%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">20% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                    </ul>
                                </li>
                                <li class="footer">
                                    <a href="#">查看所有任务</a>
                                </li>
                            </ul>
                        </li>
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="login_out" class="dropdown-toggle" data-toggle="tooltip" data-widget="collapse" data-original-title="退出登录">
                                <i class="fa fa-power-off fa-lg"></i>
                            </a>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                        <div class="pull-left image">
                            <!-- <img src="/Public<?php echo ($user['user']['user_photo']); ?>" class="img-circle" alt="User Image" /> -->
                            <img src="/Public<?php echo ($_SESSION['user']['user_photo']); ?>" class="img-circle" alt="User Image" />
                        </div>
                        <div class="pull-left info">
                            <p>Hello, <?php echo ($_SESSION['user']['user_name']); ?></p>

                            <i class="fa fa-circle text-success"></i> 在线
                        </div>
                    </div>
                    <div class="sidebar-form"><div class="input-group"></div></div>

                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li>
                            <a href="index">
                                <i class="icon-home"></i> <span>首页</span>
                            </a>
                        </li>
                        <?php if(($ACTION_NAME == 'hostinglist') OR ($ACTION_NAME == 'hostingadd') ): ?><li class="treeview active"><?php else: ?><li class="treeview"><?php endif; ?>
                            <a href="javascript:void(0);">
                                <i class="icon-globe"></i>
                                <span>网站管理</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">

                                <?php if($ACTION_NAME == 'hostinglist'): ?><li><a href="hostinglist"><i class="icon-circle"></i> 站点列表</a></li><?php else: ?><li><a href="hostinglist"><i class="icon-circle-blank"></i> 站点列表</a></li><?php endif; ?>


                                <?php if($ACTION_NAME == 'hostingadd'): ?><li><a href="hostingadd"><i class="icon-circle"></i> 新建站点</a></li><?php else: ?><li><a href="hostingadd"><i class="icon-circle-blank"></i> 新建站点</a></li><?php endif; ?>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="javascript:void(0);">
                                <i class="icon-inbox"></i>
                                <span>FTP管理</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="pages/charts/morris.html"><i class="icon-circle-blank"></i> 站点列表</a></li>
                                <li><a href="pages/charts/flot.html"><i class="icon-circle-blank"></i> 新建站点</a></li>
                                <li><a href="pages/charts/inline.html"><i class="icon-circle-blank"></i> 快速安装网站系统</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="javascript:void(0);">
                                <i class="icon-hdd"></i>
                                <span>Mysql</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="pages/charts/morris.html"><i class="icon-circle-blank"></i> 站点列表</a></li>
                                <li><a href="pages/charts/flot.html"><i class="icon-circle-blank"></i> 新建站点</a></li>
                                <li><a href="pages/charts/inline.html"><i class="icon-circle-blank"></i> 快速安装网站系统</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="javascript:void(0);">
                                <i class="icon-folder-close-alt"></i>
                                <span>文件管理</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="pages/charts/morris.html"><i class="icon-circle-blank"></i> 站点列表</a></li>
                                <li><a href="pages/charts/flot.html"><i class="icon-circle-blank"></i> 新建站点</a></li>
                                <li><a href="pages/charts/inline.html"><i class="icon-circle-blank"></i> 快速安装网站系统</a></li>
                            </ul>
                        </li>
                        <li <?php if(($ACTION_NAME == 'userlist') OR ($ACTION_NAME == 'useradd') ): ?>style="display: block;"class="treeview active"<?php else: ?>class="treeview"<?php endif; ?>>
                            <a href="javascript:void(0);">
                                <i class="icon-user-md"></i>
                                <span>用户管理</span>
                                <?php if(($ACTION_NAME == 'userlist') OR ($ACTION_NAME == 'useradd') ): ?><i class="fa pull-right fa-angle-down"></i><?php else: ?><i class="fa fa-angle-left pull-right"></i><?php endif; ?>

                            </a>
                            <ul class="treeview-menu">

                                <?php if($ACTION_NAME == 'userlist'): ?><li><a href="userlist"><i class="icon-circle"></i> 用户列表</a></li><?php else: ?><li><a href="userlist"><i class="icon-circle-blank"></i> 用户列表</a></li><?php endif; ?>

                                <li><a href="#"><i class="icon-circle-blank"></i> 添加用户</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="javascript:void(0);">
                                <i class="icon-time icon-spin"></i>
                                <span>计划任务</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="pages/charts/morris.html"><i class="icon-circle-blank"></i> 站点列表</a></li>
                                <li><a href="pages/charts/flot.html"><i class="icon-circle-blank"></i> 新建站点</a></li>
                                <li><a href="pages/charts/inline.html"><i class="icon-circle-blank"></i> 快速安装网站系统</a></li>
                            </ul>
                        </li>

                        <?php if(($ACTION_NAME == 'intwebsys') OR ($ACTION_NAME == 'systemconf') ): ?><li class="treeview active"><?php else: ?><li class="treeview"><?php endif; ?>
                            <a href="javascript:void(0);">
                                <i class="icon-cogs"></i>
                                <span>系统设置</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <?php if($ACTION_NAME == 'systemconf'): ?><li><a href="systemconf"><i class="icon-circle"></i> 系统设置</a></li><?php else: ?><li><a href="systemconf"><i class="icon-circle-blank"></i> 系统设置</a></li><?php endif; ?>
                                <!-- <?php if($ACTION_NAME == 'intwebsys'): ?><li><a href="intwebsys"><i class="icon-circle"></i> 快速安装网站系统</a></li><?php else: ?><li><a href="intwebsys"><i class="icon-circle-blank"></i> 快速安装网站系统</a></li><?php endif; ?> -->
                            </ul>
                        </li>
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        首页
                        <small>控制面板</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="icon-home"></i> Home</a></li>
                        <li class="active">仪表板</li>
                    </ol>
                </section>


                <!-- Main content -->
                <section class="content">
                    <div class="row">
                        <!-- left column -->
                        <div class="col-md-6">
                            <!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header">
                                    <h3 class="box-title">网站添加</h3>
                                </div><!-- /.box-header -->
                                <!-- form start -->
                                <form role="form" action="" method="post" id="addH">
                                    <div class="box-body">
                                        <div class="form-group" id="adddomainerror">
                                            <label >站点域名</label>
                                            <input type="text" class="form-control" id="domains" placeholder="请输入域名或IP(多个域名请用英文逗号隔开)">
                                        </div>
                                        <div class="form-group">
                                            <label >目录大小限制</label>
                                            <div class="input-group">
                                                <input type="number" min="0" class="form-control" placeholder="不限制" data-toggle="tooltip" data-placement="top" title="输入0或留空为不限制">
                                                <span class="input-group-addon">M</span>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label >下载限制</label>
                                            <div class="input-group">
                                                <input type="number" min="0" class="form-control" placeholder="不限制" data-toggle="tooltip" data-placement="top" title="输入0或留空为不限制">
                                                <span class="input-group-addon">KB/S</span>
                                            </div>
                                        </div>
                                    </div><!-- /.box-body -->

                                    <div class="box-footer">
                                        <button type="button" id="addhost" class="btn btn-primary"><i class="fa fa-check-square-o"></i> 添加</button>
                                    </div>
                                </form>
                            </div><!-- /.box -->

                        </div><!--/.col (left) -->
                        <!-- right column -->
                        <div class="col-md-6">
                            <!-- general form elements disabled -->
                            <div class="box box-success">
                                <div class="box-header">
                                    <h3 class="box-title">一键添加</h3>
                                </div><!-- /.box-header -->
                                <div class="box-body">
                                <form role="form" action="" method="post" id="addALLH">
                                    <div class="box-body">
                                        <div class="form-group" id="adddomainserror">
                                            <label >站点域名</label>
                                            <input type="text" id="adddomains" class="form-control" placeholder="请输入域名或IP(多个域名请用英文逗号隔开)">
                                        </div>
                                        <div class="form-group" id="dbusernameerror">
                                            <!-- <label >数据库用户名</label> -->
                                            <label class="control-label" for="inputError"  ><i class=""></i> 数据库用户名</label>
                                                <input type="text" id="dbusername" class="form-control" placeholder="随机"  data-toggle="tooltip" data-placement="top" title="只能是 3-10 位的数字和字母">
                                        </div>

                                        <div class="form-group" id="dbuserpaserror">
                                            <!-- <label >数据库密码</label> -->
                                            <label class="control-label" for="inputError"  ><i class=""></i> 数据库密码</label>
                                                <input type="text" id="dbuserpas" class="form-control" placeholder="随机" data-toggle="tooltip" data-placement="top" title="只能是 6-16 位的数字和字母">
                                        </div>
                                        <div class="form-group" id="ftpusernameerror">
                                            <!-- <label >FTP用户名</label> -->
                                            <label class="control-label" for="inputError"  ><i class=""></i> FTP用户名</label>
                                                <input type="text" id="ftpusername" class="form-control" placeholder="随机" data-toggle="tooltip" data-placement="top" title="只能是 6-16 位的数字和字母">
                                        </div>
                                        <div class="form-group" id="ftpuserpaserror">
                                            <!-- <label >FTP密码</label> -->
                                            <label class="control-label" for="inputError"  ><i class=""></i> FTP密码</label>
                                                <input type="text" id="ftpuserpas" class="form-control" placeholder="随机" data-toggle="tooltip" data-placement="top" title="只能是 6-16 位的数字和字母">
                                        </div>
                                        <!-- select -->
                                        <div class="form-group">
                                            <label>集成常用网站系统</label>
                                            <select class="form-control">
                                                <option value="0">不集成</option>
                                                <?php if(is_array($INTEGRATED_WEB_SYS)): $i = 0; $__LIST__ = $INTEGRATED_WEB_SYS;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo['sysurl']); ?>"><?php echo ($vo['systitle']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                            <label >目录大小限制</label>
                                            <div class="input-group">
                                                <input type="number" min="0" class="form-control" placeholder="不限制" data-toggle="tooltip" data-placement="top" title="输入0或留空为不限制">
                                                <span class="input-group-addon">M</span>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label >数据库大小限制</label>
                                            <div class="input-group">
                                                <input type="number" min="0" class="form-control" placeholder="不限制" data-toggle="tooltip" data-placement="top" title="输入0或留空为不限制">
                                                <span class="input-group-addon">M</span>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label >下载限制</label>
                                            <div class="input-group">
                                                <input type="number" min="0" class="form-control" placeholder="不限制" data-toggle="tooltip" data-placement="top" title="输入0或留空为不限制">
                                                <span class="input-group-addon">KB/S</span>
                                            </div>
                                        </div>
                                    </div><!-- /.box-body -->

                                    <div class="box-footer">
                                        <button type="button" id="addallhost" class="btn btn-primary"><i class="fa fa-check-square-o"></i> 添加</button>
                                    </div>
                                </form>
                                </div><!-- /.box-body -->
                            </div><!-- /.box -->
                        </div><!--/.col (right) -->
                    </div>   <!-- /.row -->
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

<script src="/Public/style/js/hostadd.js" type="text/javascript"></script>

        <!-- jQuery UI 1.10.3 -->
        <script src="/Public/style/js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
        <!-- Bootstrap -->
        <script src="/Public/style/js/bootstrap.min.js" type="text/javascript"></script>
        <!-- Morris.js charts -->
        <script src="/Public/style/js/raphael-min.js"></script>
        <script src="/Public/style/js/plugins/morris/morris.min.js" type="text/javascript"></script>
        <!-- Sparkline -->
        <script src="/Public/style/js/plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>
        <!-- jvectormap -->
        <script src="/Public/style/js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
        <script src="/Public/style/js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script>
        <!-- fullCalendar -->
        <script src="/Public/style/js/plugins/fullcalendar/fullcalendar.min.js" type="text/javascript"></script>
        <!-- jQuery Knob Chart -->
        <script src="/Public/style/js/plugins/jqueryKnob/jquery.knob.js" type="text/javascript"></script>
        <!-- daterangepicker -->
        <script src="/Public/style/js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
        <!-- Bootstrap WYSIHTML5 -->
        <script src="/Public/style/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
        <!-- iCheck -->
        <script src="/Public/style/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>

        <!-- AdminLTE App -->
        <script src="/Public/style/js/AdminLTE/app.js" type="text/javascript"></script>

        <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
        <script src="/Public/style/js/AdminLTE/dashboard.js" type="text/javascript"></script>
        <!-- UED -->
        <script src="/Public/style/js/ued.js" type="text/javascript"></script>

    </body>
</html>